package com.example.lottery_system.dao.Mapper;

import com.example.lottery_system.dao.DataObject.WinningRecordDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface WinningRecordMapper {

    Integer insertDoList(@Param("items") List<WinningRecordDO> winningRecordDOList);

    List<WinningRecordDO> selectDoByActivity(@Param("activityId") Long activityId, @Param("prizeId") Long prizeId);

    Integer selectCountByAP(@Param("activityId") Long activityId,@Param("prizeId") Long prizeId);

    Integer deleteDOByAP(@Param("activityId") Long activityId,@Param("prizeId") Long prizeId);
}
